# ${item.getName()}(${item.getCodeName()})  <!-- {docsify-ignore-all} -->
<%if(item.getMemo()){%>

${ctx.ignoreNullString(item.getMemo())}
<%}%>

<br>
<p class="panel-title"><b>实体</b></p>

* [${item.getPSDataEntity().getDisplayName()}](module/${item.getPSDataEntity().getPSSystemModule().getCodeName()}/${item.getPSDataEntity().getCodeName()})


<% if (item.getPSDEDataSet()) {%>\

<p class="panel-title"><b>数据集合</b></p>

* [${item.getPSDEDataSet().getDisplayName()}](module/${item.getPSDataEntity().getPSSystemModule().getCodeName()}/${item.getPSDataEntity().getCodeName()}/dataset/${item.getPSDEDataSet().getCodeName()})
<% } %>\
<% if (item.getKeyPSDEField()) {%>\

<p class="panel-title"><b>键值属性</b></p>

* `${item.getKeyPSDEField().getDisplayName()}`
<% } %>\
<% if (item.getTypePSDEField()) {%>\

<p class="panel-title"><b>类型属性</b></p>

* `${item.getTypePSDEField().getDisplayName()}`
<% } %>\

<% if (item.getAllPSSysBICubeDimensions()) {%>\
### 维度
<%
    def common_dimensions = item.getAllPSSysBICubeDimensions().findAll {it.getDimensionType() == "COMMON"}
    def calc_dimensions = item.getAllPSSysBICubeDimensions().findAll {it.getDimensionType() == "CALCULATED"}
%>\
<% if (common_dimensions) {%>\
##### 常规维度
|    名称col200   | 代码名col150      | 属性col350    |  备注col500  |
| --------  |------------| -----   |  --------|
<% common_dimensions.each{ dimension -> %>\
|${dimension.getName()}|${dimension.getCodeName()}\
|<%= (dimension.getPSDEField()?dimension.getPSDEField().getDisplayName():'')%>\
|${ctx.tableString(dimension.getMemo())}|
<% }} %>\
<% if (calc_dimensions) {%>\
##### 计算式维度
|    名称col200   | 代码名col150      |  计算公式col500    |  备注col500  |
| --------  |------------| -----   |  --------|
<% calc_dimensions.each{ dimension -> %>\
|${dimension.getName()}|${dimension.getCodeName()}\
|${dimension.getDimensionFormula()}\
|${ctx.tableString(dimension.getMemo())}|
<% }} %>\
<% } %>\

<% if (item.getAllPSSysBICubeMeasures()) {%>\
### 指标
<%
    def common_measures = item.getAllPSSysBICubeMeasures().findAll {it.getMeasureType() == "COMMON"}
    def calc_measures = item.getAllPSSysBICubeMeasures().findAll {it.getMeasureType() == "CALCULATED"}
%>\
<% if (common_measures) {%>\
##### 常规指标
|    名称col200   | 代码名col150 |  聚合模式col150  | 属性col350      |  备注col500  |
| --------  |------------| -----   |  --------|--------|
<% common_measures.each{ measure -> %>\
|${measure.getName()}|${measure.getCodeName()}\
|${ctx.text('AggMode',measure.getAggMode())}\
|<%= (measure.getPSDEField()?measure.getPSDEField().getDisplayName():'')%>\
|${ctx.tableString(measure.getMemo())}|
<% }} %>\
<% if (calc_measures) {%>\
##### 计算式指标
|    名称col200   | 代码名col150  |  计算公式col501   |  备注col500  |
| --------  |------------| -----   |  --------|
<% calc_measures.each{ measure -> %>\
|${measure.getName()}|${measure.getCodeName()}\
|${measure.getMeasureFormula()}\
|${ctx.tableString(measure.getMemo())}|
<% }} %>\
<% } %>\

<script>
 const { createApp } = Vue
  createApp({
    data() {
      return {
      }
    },
    methods: {
    }
  }).use(ElementPlus).mount('#app')
</script>